Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make MME and DirectSound wait forever for the streaming thread to exit #920

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dechamps
Copy link
Contributor

@dechamps dechamps commented Jun 2, 2024

This implements the proposal described in #919 for MME and DirectSound.

dechamps added 2 commits June 2, 2024 15:03
See PortAudio#919 for rationale.

Note that the previous Pa_StopStream() uses a bounded timeout to abort
the stream if it doesn't stop within the alloted time, and then another
bounded timeout to wait for the streaming thread to exit. This commit
preserves the first timeout as it makes sense and appears to be safe,
but gets rid of the second one so that we wait indefinitely for the
streaming thread to exit.
@RossBencina RossBencina added src-dsound MS DirectSound Host API /src/hostapi/dsound src-wmme MS WMME Host API /src/hostapi/wmme labels Oct 18, 2024
@philburk philburk added P2 Priority: High and removed src-dsound MS DirectSound Host API /src/hostapi/dsound src-wmme MS WMME Host API /src/hostapi/wmme labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Priority: High
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants